package kcms.ppt.dao;

import java.util.List;

import kcms.db.Ppt;
import kcms.db.PptAndContent;
import kcms.db.PptTeaContent;
import kcms.db.Pptcontent;

public interface PptDao {

	public int queryPptId(String cid,String csn,String chapter);

	public Pptcontent deletePptResourceByPptid(int pptid);

	public Ppt createNewPptid(String cid,String csn,String chapter);

	public boolean saveContentRecord(Integer pptid, String generatedname,
			String originalname, String description);

	//public Pptcontent queryPptidByCidCsn(String cid, String csn);

	public List<PptAndContent> listPpt(String substring, String substring2,
			String search, String startdate, String enddate, int currentpage,
			int pagesize);

	public Pptcontent getRealFileNameByPptid(String pptid);

	public List<PptTeaContent> listPptByTid(String id);

	public boolean deletePptByPptid(String pptid);

	public boolean deleteAllPptStatusByPptid(String pptid);

}
